{extend name="public/base"/}
{block name="body"}
<div class="main-box no-header clearfix">
    <header class="main-box-header clearfix">
        <div class="pull-left">
            <h2>{$meta_title}</h2>
        </div>
        <!--<div class="pull-right">
            <a href="{:url('add')}" class="btn btn-primary pull-right"> <i class="fa fa-plus-circle fa-lg"></i> 新增用户</a>
        </div>-->
    </header>
    <div class="main-box-body clearfix">
        <div class="navbar navbar-default">
            <form action="" class="navbar-form form-inline" method="get">
                <div class="form-group">
                    <label class="control-label" for="input-order-id">用户ID</label>
                    <div class="input-group">
                        <input type="number" min="0" name="uid" value="{$param['uid']|default=''}" placeholder="UID"
                               class="form-control">
                    </div>
                </div>
                <!--<div class="form-group">
                    <label class="control-label" for="input-order-id">手机号/昵称/邮箱</label>
                    <div class="input-group">
                        <input type="text" name="name" value="{$param['nickname']|default=''}" placeholder="手机号" class="form-control">
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label" for="input-order-id">状态</label>
                    <div class="input-group">
                        <input type="text" name="nickname" value="{$param['status']|default=''}" placeholder="昵称" >
                    </div>
                </div>-->
                <button class="btn btn-primary" type="submit"><i class="fa fa-search"></i> 筛选</button>
            </form>
        </div>

        <div class="table-responsive">
            <table class="table user-list table-hover">
                <thead>
                <tr>
                    <th><span>ID</span></th>
                    <th><span>用户ID</span></th>
                    <th><span>类型</span></th>
                    <th><span>姓名</span></th>
                    <th><span>账号</span></th>
                    <th><span>添加时间</span></th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>

                {volist name="list" id="item"}
                <tr>

                    <td>{$item['id']}</td>
                    <td>{$item['uid']}</td>
                    <td>{$item['type_name']}</td>
                    <td>{$item['full_name']}</td>
                    <td> {if $item['type'] eq 3 } {$item['bank_name']} - {/if} {$item['card_id']}</td>
                    <td>{$item['create_time']}</td>

                    <td>
                        <a href="{:url('edit_bank',array('id'=>$item['id']))}" class="table-link" title="">
                            编辑
                        </a>
                    </td>
                </tr>
                {/volist}
                </tbody>
            </table>
            {$page}
        </div>
    </div>
</div>
{/block}